From 118614a90c3bddb625522cee4cbc56f609220c40 Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Thu, 11 May 2006 11:33:07 +0100 Subject: [PATCH] Fix a typo in xc_ptrace() and fix single-stepping when attached to a live guest. Signed-off-by: Keir Fraser --- tools/libxc/xc_ptrace.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/libxc/xc_ptrace.c b/tools/libxc/xc_ptrace.c index 630b9eb97a..d26bfab62f 100644 --- a/tools/libxc/xc_ptrace.c +++ b/tools/libxc/xc_ptrace.c @@ -518,7 +518,7 @@ xc_ptrace( case PTRACE_SETREGS: if (current_isfile) - goto out_unspported; /* XXX not yet supported */ + goto out_unsupported; /* XXX not yet supported */ SET_XC_REGS(((struct gdb_regs *)data), ctxt[cpu].user_regs); if ((retval = xc_vcpu_setcontext(xc_handle, current_domid, cpu, &ctxt[cpu]))) @@ -526,8 +526,8 @@ xc_ptrace( break; case PTRACE_SINGLESTEP: - if (!current_isfile) - goto out_unspported; /* XXX not yet supported */ + if (current_isfile) + goto out_unsupported; /* XXX not yet supported */ /* XXX we can still have problems if the user switches threads * during single-stepping - but that just seems retarded */ @@ -540,7 +540,7 @@ xc_ptrace( case PTRACE_CONT: case PTRACE_DETACH: if (current_isfile) - goto out_unspported; /* XXX not yet supported */ + goto out_unsupported; /* XXX not yet supported */ if ( request != PTRACE_SINGLESTEP ) { FOREACH_CPU(cpumap, index) { @@ -603,7 +603,7 @@ xc_ptrace( case PTRACE_POKEUSER: case PTRACE_SYSCALL: case PTRACE_KILL: - goto out_unspported; /* XXX not yet supported */ + goto out_unsupported; /* XXX not yet supported */ case PTRACE_TRACEME: printf("PTRACE_TRACEME is an invalid request under Xen\n"); @@ -618,7 +618,7 @@ xc_ptrace( errno = EINVAL; return retval; - out_unspported: + out_unsupported: #ifdef DEBUG printf("unsupported xc_ptrace request %s\n", ptrace_names[request]); #endif -- 2.30.2